SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Bui Thanh Nam
-- Create date: 20140419
-- Description:	DeleteOrder
-- =============================================
CREATE PROCEDURE DeleteOrder
	@OrderId	INT,
	@RowCount	INT = NULL OUTPUT
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    UPDATE [NGroup_VTL_DB].[dbo].[Orders]
	   SET [IsActive] = 0		 
	 WHERE [ID] = @OrderId

	 SELECT @Rowcount = @@ROWCOUNT
END
GO
